home *** CD-ROM | disk | FTP | other *** search
/ PC Home 49 / PC_Home_Issue_49.iso / lldemo / lldemo.shr / ROSETTA.EXE / ROSETTA.DXR / 00566_initialization scripts.ls < prev    next >
Encoding:
Text File  |  1996-06-24  |  1.2 KB  |  51 lines

  1. on startMovie
  2.   set the romanLingo to 1
  3.   initBroadcast()
  4. end
  5.  
  6. on initGlobals
  7.   global gBlindfold, gTest, gTimer, gScore, gTimerTicks, gInPlay, gCurQuad, gNexQuad, gScreenMode, gShowText, gNewChap, gOldTimer, gMenu, gRecording, gDictMode, gType, gSoundObj, gPassword
  8.   set gDictMode to #CLICKSPEAKER
  9.   set gRecording to 0
  10.   set gScore to 1
  11.   set gBlindfold to 0
  12.   set gTimer to 0
  13.   set gTest to 0
  14.   set gMenu to 0
  15.   set gInPlay to 0
  16.   set gShowText to 0
  17.   set gOldTimer to 0
  18.   set gPassword to EMPTY
  19.   put " " into field "password"
  20.   set gCurQuad to 1
  21.   set gNexQuad to 2
  22.   initScore()
  23.   set gNewChap to EMPTY
  24.   randomize()
  25.   set gTimerTicks to 5 * 60
  26.   set the text of cast "TimerSecs" to "5"
  27.   set gScreenMode to [:]
  28.   if gType = #MAC then
  29.     set gSoundObj to TRSSound(mnew)
  30.   end if
  31. end
  32.  
  33. on readConfig
  34.   global gSMSPath, gPrintErrors, gLogErrors, gType
  35.   set gSMSPath to EMPTY
  36.   set gPrintErrors to 1
  37.   set gLogErrors to 1
  38.   set theText to readTextFile(the pathName & "rosetta.cfg")
  39.   if word 1 of theText <> "#Error" then
  40.     if gType = #PC then
  41.       set i to 2
  42.     else
  43.       set i to 1
  44.     end if
  45.     set gSMSPath to item i of theText
  46.   else
  47.     return 1
  48.   end if
  49.   return 0
  50. end
  51.